﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace JF.Controls
{
    public class ExportHelp
    {
        public static bool Export(string logFolderPath,out string slelctPath)
        {
            slelctPath = "";
            //文件夹
            if (!Directory.Exists(logFolderPath))
            {
                MessageBox.Show("日志文件不存在");
                return false;
            }
            FolderBrowserDialog folder = new System.Windows.Forms.FolderBrowserDialog();

            folder.Description = "选择文件所在文件夹目录";  //提示的文字

            if (folder.ShowDialog() != System.Windows.Forms.DialogResult.OK)
            {
                return false;
            }
            slelctPath= folder.SelectedPath;
            return true;
        }
    }
}
